package choice_test;

public class exercise_4 {
		public static void main(String[] args) {
			int i=0;
			
			while(i<=10000) {
				int  x =(int)Math.sqrt(i+100);
				int y =(int)Math.sqrt(i+268);
				if(x*x==(i+100) && y*y ==(i+268)) {
					System.out.println(i);
				}
				i++;
				
			}
		}

}
